import instance from "../instance";

// 预警信息接口
export  function ddevicePageApi(param) {
	return instance({
		url: `/flow/meter/device/page?current=${param.current}&deviceName=${param.deviceName}&online=${param.online}&size=10`,
		methods: 'GET',
	})
}

export  function deviceInfoPageApi(param) {
	return instance({
		url: `/flow/meter/device/info?deviceId=${param}`,
		methods: 'GET',
	})
}

export  function lastdpbyIdApi(param) {
	return instance({
		url: `/api/v1/factory/device/lastdp?did=${param}`,
		methods: 'GET',
	})
}


export  function hisdpsApi(param) {
	return instance({
		url: `/api/v1/factory/device/hisdps?did=${param.did}&dsids=${param.dsids}&start=${param.start}&end=${param.end}&cursor=0`,
		methods: 'GET',
	})
}
// 地图获取所有点
export  function devicemapApi() {
	return instance({
		url: `/admin/visual/screen/get/project/and/device/list`,
		methods: 'GET',
	})
}
